

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

@interface LLHttpTool : NSObject

// 获取设备型号
+ (NSString *)deviceModelName;

// 获取设备uuid
+ (NSString *)deviceModelUUid;

+ (void)get:(NSString *)url headParams:(NSDictionary *)headParams params:(NSDictionary *)params success:(void (^)(NSDictionary *result))success failure:(void (^)(NSString *error))failure;

+ (void)post:(NSString *)url headParams:(NSDictionary *)headParams params:(NSDictionary *)params success:(void (^)(NSDictionary *result))success failure:(void (^)(NSString *msg))failure;

/// 上传多张图片
+ (void)uploadOperationToUrl:(NSString *)url params:(NSDictionary *)params files:(NSArray *)files process:(void (^)(NSInteger writedBytes, NSInteger totalBytes))process complete:(void (^)(BOOL successed, NSDictionary *result))complete finish:(void (^)(void))finish;

/// 上传单张图片
+ (void)uploadImageWithUrl:(NSString *)url headParams:(NSDictionary *)headParams params:(NSDictionary *)params imageData:(NSData *)imageData fileName:(NSString *)fileName success:(void (^)(NSDictionary *result))success failure:(void (^)(NSString *msg))failure;

@end
